package com.zb.kc.servicebase.exceptionhandler;

import com.zb.kc.commonutils.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class KgcException extends RuntimeException {

    private Integer code;

    private String msg;

    public KgcException(ResultCode resultCode) {
        this.code = resultCode.getCode();
        this.msg = resultCode.getMsg();
    }

}
